%%%-------------------------------------------------------------------
%%% @author Zheng
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 19. 3月 2024 14:57
%%%-------------------------------------------------------------------
-module('Square').
-author("Zheng").

%% API
-export([area/1]).

area({rectangle, Width, Height}) ->
  Width * Height;

area({square, Side}) ->
  Side * Side;

area({circle, Radius}) ->
  3.14159 * Radius * Radius.
